package zxs.sino.elite.hub.service.app.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.yulichang.base.MPJBaseServiceImpl;
import zxs.sino.elite.hub.utils.PageUtil;
import zxs.sino.elite.hub.utils.Query;

import zxs.sino.elite.hub.mapper.app.UserPointsMapper;
import zxs.sino.elite.hub.model.app.UserPointsEntity;
import zxs.sino.elite.hub.service.app.UserPointsService;


@Service("userPointsService")
public class UserPointsServiceImpl extends MPJBaseServiceImpl<UserPointsMapper, UserPointsEntity> implements UserPointsService {

    @Override
    public PageUtil queryPage(Map<String, Object> params) {
        IPage<UserPointsEntity> page = this.page(
                new Query<UserPointsEntity>().getPage(params),
                new QueryWrapper<UserPointsEntity>()
        );

        return new PageUtil(page);
    }

}